package com.adou.d10;

import java.util.function.Predicate;

public class PredicateTest {
    public static boolean checkString(String s, Predicate<String> pre) {
        return pre.test(s);
    }

    public static void main(String[] args) {
        String s = "abcdef";
        boolean b =  checkString(s, (str)->{return  str.length() > 5;});

        System.out.println(b);
    }
}
